//
//  TTextMessageCell.h
//  UIKit
//
//  Created by kennethmiao on 2018/9/17.
//  Copyright © 2018年 kennethmiao. All rights reserved.
//

#import "TMessageCell.h"

typedef void (^GDYImTransBlock)(NSString *trans);

@interface TTextMessageCellData : TMessageCellData
@property (nonatomic, strong) NSString *content;

@property(nonatomic,assign)BOOL transBtnShow;//是否显示翻译按钮
@property(nonatomic,assign)BOOL transBoxShow;//是否显示翻译文本-[默认为空,点击了翻译按钮后更改数据源,利用数据源是否为空来决定是否显示翻译]
@property(nonatomic,strong)NSString *fyStr;
@property (nonatomic, assign) CGSize fySize;
-(CGSize)calculationTransStr:(NSString *)fyStr;

@end

@interface TTextMessageCell : TMessageCell
@property (nonatomic, strong) UIImageView *bubble;
@property (nonatomic, strong) UILabel *content;

/// 翻译
@property(nonatomic,strong)UIButton *gdyFyBtn;
@property(nonatomic,strong)UIView *gdyFyBox;
@property(nonatomic,strong)UILabel *gdyFyShowL;
@property(nonatomic,copy)GDYImTransBlock transEvent;

@end
